@layout("/common/_form.html",{js:["/assets/system/dept/dept_edit.js"]}){

<style>
    .layui-form-label {
        float: left;
        display: block;
        padding: 9px 15px;
        width: 120px;
        font-weight: 400;
        line-height: 20px;
        text-align: right;
    }

    .layui-input-block {
        margin-left: 150px;
        min-height: 36px;
    }
</style>

<form class="layui-form" id="deptForm" lay-filter="deptForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="deptId" type="hidden"/>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label layui-form-required">部门简称</label>
                        <div class="layui-input-block">
                            <input id="simpleName" name="simpleName" type="text" class="layui-input" lay-verify="required|maxlength50" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label layui-form-required">部门全称</label>
                        <div class="layui-input-block">
                            <input id="fullName" name="fullName" type="text" class="layui-input" lay-verify="required|maxlength255" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label layui-form-required">部门类型</label>
                        <div class="layui-input-block">
                            <tag:dic_select id="deptType" name="deptType" type="select" dicCode="DEPT_TYPE"></tag:dic_select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label layui-form-required">上级名称</label>
                        <div class="layui-input-block">
                            <input id="pid" name="pid" type="hidden" />
                            <input id="pName" name="pName" type="text" readonly class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input id="sort" name="sort" type="number" class="layui-input" lay-verify="number|maxlength6" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea id="description" name="description" class="layui-textarea" lay-verify="maxlength255"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">取消</button>
    </div>

</form>
@}
